home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1999 April: Mac OS SDK / Dev.CD Apr 99 SDK1.toast / Development Kits / AppleShare IP SDK / ASIP Registry / Headers / AppleShareMailServerRegistry.h < prev    next >
Encoding:
C/C++ Source or Header  |  1998-07-17  |  3.5 KB  |  132 lines  |  [TEXT/MPS ]

  1. /*
  2.      File:        AppleShareMailServerRegistry.h
  3.  
  4.      Contains:    Attributes stored by the ASIP Mail Server in the Registry.
  5.  
  6.      Version:    Technology:    AppleShare IP 6.0
  7.                  Release:    ASIP 6.0 SDK - Friday, July 10, 1998 11:16:11 AM
  8.  
  9.      Copyright:    © 1996-1998 by Apple Computer, Inc., all rights reserved.
  10.  
  11.      Bugs?:        For bug reports, consult the following page on
  12.                  the World Wide Web:
  13.  
  14.                      http://developer.apple.com/bugreporter/
  15.  
  16. */
  17. #ifndef __APPLESHAREMAILSERVERREGISTRY__
  18. #define __APPLESHAREMAILSERVERREGISTRY__
  19.  
  20. #ifndef __APPLESHAREREGISTRY__
  21. #include <AppleShareRegistry.h>
  22. #endif
  23.  
  24.  
  25.  
  26. #if PRAGMA_ONCE
  27. #pragma once
  28. #endif
  29.  
  30. #ifdef __cplusplus
  31. extern "C" {
  32. #endif
  33.  
  34. #if PRAGMA_IMPORT
  35. #pragma import on
  36. #endif
  37.  
  38. #if PRAGMA_STRUCT_ALIGN
  39.     #pragma options align=mac68k
  40. #elif PRAGMA_STRUCT_PACKPUSH
  41.     #pragma pack(push, 2)
  42. #elif PRAGMA_STRUCT_PACK
  43.     #pragma pack(2)
  44. #endif
  45.  
  46. /*
  47.    *********
  48.    Constants
  49.    *********
  50. */
  51. /* Signature, type...*/
  52.  
  53. enum {
  54.     kMUMailServerSignature        = FOUR_CHAR_CODE('mail'),
  55.     kMU60Attributes                = FOUR_CHAR_CODE('mU60')        /* MailUser    6.0*/
  56. };
  57.  
  58. /* ASDSharedAttributeConstants */
  59.  
  60. enum {
  61.     kMUMaxSMTPForwardLength        = 255,
  62.     kMUFingerprintLength        = 16
  63. };
  64.  
  65. /*
  66.    ***************
  67.    User Attributes
  68.    ***************
  69. */
  70.  
  71. /* ASDMailUserFlags*/
  72.  
  73. enum {
  74.     KMUUserEnableMask            = 0x0000000F,
  75.     kMUAPOPRequired                = 0x00000004,                    /* User must use APOP to authenticate*/
  76.     kMUForwardingMask            = 0x000000F0,                    /* Mask to get forwarding options*/
  77.     kMUNoForwarding                = 0x00000010,                    /* enabled mail...this bit should be set..*/
  78.     kMUForwardSMTP                = 0x00000020,                    /* Forward mail to SMTP address*/
  79.     kMUForwardATalk                = 0x00000040,                    /* Forward mail to AppleTalk SMTP server*/
  80.                                                                 /* 6.0 flag additions*/
  81.     kMUIMAPPOPFlagsMask            = 0x00000F00,
  82.     kMUPOPEnabled                = 0x00000100,                    /* User can connect over POP3 or PASS*/
  83.     kMUIMAPEnabled                = 0x00000200,                    /* User can connect over IMAP or PASS*/
  84.     kMUNotificationMask            = 0x0000F000,
  85.     kMUNotificationON            = 0x00001000,                    /* User wants mail notification*/
  86.     kMUUseLastIPAddr            = 0x00002000,                    /* Use last IP Address for notification - notifyIPAddress is ignored..*/
  87.     kMUUseSpecificIPAddr        = 0x00004000,                    /* field notifyIPAddress is used...and kMUUseLastIPAddr should cleared..*/
  88.     kMUSharedBoxFlagMask        = 0x000F0000,
  89.     kMUSeparatePOPAndIMAP        = 0x00010000,                    /* User can connect over POP3, IMAP or PASS with separate inbox*/
  90.     kMUShowPOPInIMAP            = 0x00020000,                    /* User can connect over POP3, IMAP or PASS with separate inbox*/
  91.                                                                 /* legacy, do not use beyond 5.0.x versions..*/
  92.     kMUMailEnabled                = 0x00000001,                    /* Was kMEEnabled in version 1 - ignore, should be zero for 6.0..*/
  93.     kMULoginEnabled                = 0x00000002                    /* User can connect over POP3 or PASS  - ignore, should be zero for 6.0..*/
  94. };
  95.  
  96.  
  97. struct MU60Attributes {
  98.     UInt32                             version;
  99.     UInt32                             mailUserFlags;
  100.     Str32Field                         atalkForwardName;
  101.                                                                 /*char    filler1;*/
  102.     Str32Field                         atalkForwardServer;
  103.                                                                 /*char    filler2;*/
  104.     Str32Field                         atalkForwardZone;
  105.                                                                 /*char    filler3;*/
  106.     char                             smtpForward[256];
  107.     char                             fingerprint[16];            /* initialize to all zeros when creating attribute*/
  108.     UInt32                             notifyIPAddress;
  109. };
  110. typedef struct MU60Attributes            MU60Attributes;
  111.  
  112. #if PRAGMA_STRUCT_ALIGN
  113.     #pragma options align=reset
  114. #elif PRAGMA_STRUCT_PACKPUSH
  115.     #pragma pack(pop)
  116. #elif PRAGMA_STRUCT_PACK
  117.     #pragma pack()
  118. #endif
  119.  
  120. #ifdef PRAGMA_IMPORT_OFF
  121. #pragma import off
  122. #elif PRAGMA_IMPORT
  123. #pragma import reset
  124. #endif
  125.  
  126. #ifdef __cplusplus
  127. }
  128. #endif
  129.  
  130. #endif /* __APPLESHAREMAILSERVERREGISTRY__ */
  131.  
  132.